package com.common.fileFilter;

import java.io.File;
import java.io.FileFilter;

/**
 * set file filter, only return .sql files.
 * 
 * @author morgan.liao
 * 
 */
public class SQLFileFilter implements FileFilter {
    public boolean accept(File pathName) {
        String filename = pathName.getName().toLowerCase();
        return filename.endsWith(".sql");
    }
}